package com.hp.tiger.chapter1;

/**
 * 饿汉式
 * <p>
 * 线程安全的
 *
 * @author XavierDong
 **/
public class SingletonObject1 {

    /*
     * 不能 懒加载
     * */

    private static final SingletonObject1 instance = new SingletonObject1();

    private SingletonObject1() {
//        empty
    }

    public static SingletonObject1 getInstance() {
        return instance;
    }
}
